package com.example.su_shi_tan_core.db

import androidx.room.*

@Dao
interface UserInfoDao {

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun save(user_info: UserInfoBeanWrapper?): Long

    @Query("select *from UserInfoWrapper where `token`=:token")
    fun getCache(token: String?): UserInfoBeanWrapper?

    @Delete
    fun delete(user_info: UserInfoBeanWrapper?)

}